package D240422;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import java.io.IOException;

public class JsoupDemo01 {
    public static void main(String[] args) throws IOException {
        Document doc = Jsoup.connect("https://www.baidu.com/").get();
        // System.out.println(doc.html());
        // System.out.println(doc.title());
        Elements elements = doc.getElementsByTag("title");
        Element element = elements.get(0);
        System.out.println(element);
    }
}
